package com.itheima;

import com.fasterxml.jackson.databind.exc.InvalidFormatException;
import com.github.pagehelper.PageInfo;
import com.itheima.domain.Question;

import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

public interface QuestionService {
    PageInfo<Question> findByPage(int currPage, int pageSize);
    void save(Question question);
    Question findById(String id);
    void update(Question question);
    void delete(String[] ids);
    List<Question> findAll();
    void toExport(OutputStream outputStream) throws IOException, InvalidFormatException, org.apache.poi.openxml4j.exceptions.InvalidFormatException;
}
